"""Test case for django_ldap.serializers"""

serializers_tests = """
>>> from django_ldap.serializers.json import Serializer
>>> from django_ldap.tests.fixtures import ldap_model
>>> class test_model(ldap_model):
...   class Ldap:
...     attr_mapping = {'full_name': 'cn', 'username': 'uid'}
>>> json_str = Serializer().serialize(test_model.objects.all())
>>> json_str.find('dn')>0
True
>>> json_str.find('username')>0
True
>>> simple_str = Serializer().serialize(test_model.objects.all(), style='simple')
>>> len(simple_str) < len(json_str)
True
"""

__test__ = {
    'serializers_tests':serializers_tests,
}